﻿<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic" xmlns:VMDS_GUIClient_Helper="clr-namespace:VMDS.GUIClient.Helper" xmlns:VMDS_GUIClient_ViewModels_Management_Tasks="clr-namespace:VMDS.GUIClient.ViewModels.Management.Tasks" xmlns:VMDS_GUIClient_ViewModels_Management_Clients="clr-namespace:VMDS.GUIClient.ViewModels.Management.Clients" xmlns:VMDS_GUIClient_ViewModels_Management_VMs="clr-namespace:VMDS.GUIClient.ViewModels.Management.VMs" xmlns:Custom="http://schemas.AvalonControls/AvalonControlsLibrary/Controls" x:Class="VMDS.GUIClient.Views.Management.TaskManagement" 
      d:DesignHeight="411" d:DesignWidth="626"
	Title="TaskManagement" mc:Ignorable="d">

	<Page.Resources>
		<Style x:Key="ListBoxItemStyle1" TargetType="{x:Type ListBoxItem}">
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="Padding" Value="2,0,0,0"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ListBoxItem}">
						<Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
							<TextBlock Height="Auto" TextWrapping="Wrap" Text="{Binding Name}"/>
						</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsSelected" Value="true">
								<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>
							</Trigger>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="DisabledButton" TargetType="{x:Type Button}">
			<Setter Property="Background">
				<Setter.Value>
					<RadialGradientBrush>
						<GradientStop Offset="0" Color="Black" />
						<GradientStop Offset="1" Color="Black" />
					</RadialGradientBrush>
				</Setter.Value>
			</Setter>
			<Setter Property="Height" Value="40" />
			<Setter Property="Foreground" Value="white" />
			<Setter Property="Grid.Row" Value="2" />
			<Setter Property="Grid.Column" Value="3" />
			<Setter Property="Margin" Value="3" />
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<ControlTemplate.Resources>
							<Storyboard x:Key="Timeline1">
								<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
									<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.8"/>
									<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="1"/>
								</DoubleAnimationUsingKeyFrames>
							</Storyboard>
						</ControlTemplate.Resources>
						<Grid x:Name="grid" RenderTransformOrigin="0.5,0.5">
							<Grid.RowDefinitions>
								<RowDefinition Height="0.525*"/>
								<RowDefinition Height="0.475*"/>
							</Grid.RowDefinitions>
							<Grid.RenderTransform>
								<TransformGroup>
									<ScaleTransform ScaleX="1" ScaleY="1"/>
									<SkewTransform AngleX="0" AngleY="0"/>
									<RotateTransform Angle="0"/>
									<TranslateTransform X="0" Y="0"/>
								</TransformGroup>
							</Grid.RenderTransform>
							<Rectangle x:Name="GelBackground" Opacity="1" RadiusX="9" RadiusY="9" StrokeThickness="0.35" Grid.RowSpan="2" Fill="Black">
								<Rectangle.Stroke>
									<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
										<GradientStop Offset="0" Color="White" />
										<GradientStop Offset="1" Color="#666666" />
									</LinearGradientBrush>
								</Rectangle.Stroke>
							</Rectangle>
							<Rectangle x:Name="GelShine" Margin="2" VerticalAlignment="Stretch" RadiusX="6" RadiusY="6" Opacity="1" Stroke="Transparent" Height="Auto">
								<Rectangle.Fill>
									<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
										<GradientStop Offset="0" Color="#ccffffff" />
										<GradientStop Offset="1" Color="Transparent" />
									</LinearGradientBrush>
								</Rectangle.Fill>
							</Rectangle>

							<ContentPresenter x:Name="GelButtonContent" VerticalAlignment="Center" HorizontalAlignment="Center" Content="{TemplateBinding Content}" Grid.RowSpan="2" />
						</Grid>

						<ControlTemplate.Triggers>

							<Trigger Property="IsMouseOver" Value="true">
								<Trigger.EnterActions>
									<BeginStoryboard Storyboard="{StaticResource Timeline1}"/>
								</Trigger.EnterActions>
								<Setter TargetName="GelBackground" Property="Fill">
									<Setter.Value>
										<RadialGradientBrush>
											<GradientStop Offset="0.005" Color="#FF00DDFF" />
											<GradientStop Offset="1" Color="#FF1B0064" />
										</RadialGradientBrush>
									</Setter.Value>
								</Setter>
							</Trigger>
						
							<Trigger Property="IsEnabled" Value="false">
								<Setter TargetName="GelBackground" Property="Fill">
									<Setter.Value>
										<RadialGradientBrush>
											<GradientStop Offset="0.005" Color="#FF818787" />
											<GradientStop Offset="1" Color="#FF574F6A" />
										</RadialGradientBrush>
									</Setter.Value>
								</Setter>
							</Trigger>
						
						
						
							<Trigger Property="IsPressed" Value="true">
								<Setter Property="Fill" TargetName="GelBackground">
									<Setter.Value>
										<RadialGradientBrush>
											<GradientStop Offset="0" Color="#ffcc00" />
											<GradientStop Offset="1" Color="#cc9900" />
										</RadialGradientBrush>
									</Setter.Value>
								</Setter>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Style.Triggers>
				<Trigger Property="IsMouseOver" Value="true">
					<Setter Property="Foreground" Value="black " />
				</Trigger>
				<Trigger Property="IsPressed" Value="true">
					<Setter Property="Foreground" Value="black " />
				</Trigger>
				<Trigger Property="IsDefault" Value="False"/>
			</Style.Triggers>
		</Style>

		<Style x:Key="TabItemFocusVisual">
			<Setter Property="Control.Template">
				<Setter.Value>
					<ControlTemplate>
						<Rectangle Margin="4,4,4,2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="TabItemStyle1" TargetType="{x:Type TabItem}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource TabItemFocusVisual}"/>
			<Setter Property="Padding" Value="12,2,12,2"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
			<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
			<Setter Property="VerticalContentAlignment" Value="Stretch"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type TabItem}">
						<Microsoft_Windows_Themes:ClassicBorderDecorator x:Name="ClassicBorder" BorderBrush="{x:Null}" BorderThickness="2" BorderStyle="TabTop" SnapsToDevicePixels="true" Background="#2E43BA97">
							<ContentPresenter ContentSource="Header" HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
						</Microsoft_Windows_Themes:ClassicBorderDecorator>
						<ControlTemplate.Triggers>
							<Trigger Property="IsSelected" Value="true">
								<Setter Property="Panel.ZIndex" Value="1"/>
								<Setter Property="Background" TargetName="ClassicBorder">
									<Setter.Value>
										<RadialGradientBrush>
											<GradientStop Color="#FF0BFB30" Offset="0"/>
											<GradientStop Color="#FF0C9922" Offset="1"/>
										</RadialGradientBrush>
									</Setter.Value>
								</Setter>
							</Trigger>
							<Trigger Property="TabStripPlacement" Value="Bottom">
								<Setter Property="BorderStyle" TargetName="ClassicBorder" Value="TabBottom"/>
							</Trigger>
							<Trigger Property="TabStripPlacement" Value="Left">
								<Setter Property="BorderStyle" TargetName="ClassicBorder" Value="TabLeft"/>
							</Trigger>
							<Trigger Property="TabStripPlacement" Value="Right">
								<Setter Property="BorderStyle" TargetName="ClassicBorder" Value="TabRight"/>
							</Trigger>
							<MultiTrigger>
								<MultiTrigger.Conditions>
									<Condition Property="IsSelected" Value="true"/>
									<Condition Property="TabStripPlacement" Value="Top"/>
								</MultiTrigger.Conditions>
								<Setter Property="Margin" Value="-2"/>
							</MultiTrigger>
							<MultiTrigger>
								<MultiTrigger.Conditions>
									<Condition Property="IsSelected" Value="true"/>
									<Condition Property="TabStripPlacement" Value="Bottom"/>
								</MultiTrigger.Conditions>
								<Setter Property="Margin" Value="-2"/>
							</MultiTrigger>
							<MultiTrigger>
								<MultiTrigger.Conditions>
									<Condition Property="IsSelected" Value="true"/>
									<Condition Property="TabStripPlacement" Value="Left"/>
								</MultiTrigger.Conditions>
								<Setter Property="Padding" Value="11,2,14,2"/>
								<Setter Property="Margin" Value="-2"/>
							</MultiTrigger>
							<MultiTrigger>
								<MultiTrigger.Conditions>
									<Condition Property="IsSelected" Value="true"/>
									<Condition Property="TabStripPlacement" Value="Right"/>
								</MultiTrigger.Conditions>
								<Setter Property="Padding" Value="14,2,11,2"/>
								<Setter Property="Margin" Value="-2"/>
							</MultiTrigger>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<DataTemplate x:Key="DataTemplate1">
			<Grid d:DesignWidth="476" d:DesignHeight="51">
				<TextBlock HorizontalAlignment="Left" Margin="18,8,0,8" TextWrapping="Wrap" Text="{Binding VmName, Mode=OneWay}" Width="100"/>
				<TextBlock HorizontalAlignment="Left" Margin="138,8,0,8" TextWrapping="Wrap" Text="{Binding PCname, Mode=OneWay}" Width="104"/>
			</Grid>
		</DataTemplate>
	</Page.Resources>

	

    <Grid>
    	<TabControl Margin="0" Background="{x:Null}" ItemContainerStyle="{DynamicResource TabItemStyle1}">
    		<TabItem Header="Список заданий" FontSize="14.667" Margin="0" Background="{x:Null}">
    			<Grid>
    				<Grid.DataContext>
    					<VMDS_GUIClient_ViewModels_Management_Tasks:TaskManagementViewModel/>
    				</Grid.DataContext>
    				<Grid HorizontalAlignment="Left" Margin="0,12,0,0" Width="205" d:LayoutOverrides="HorizontalAlignment" Height="175.297" VerticalAlignment="Top">

    					<Rectangle Stroke="#FFF8F3F3" StrokeThickness="0.5" RadiusX="10" RadiusY="10" Margin="0">
    						<Rectangle.Fill>
    							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0.435">
    								<LinearGradientBrush.RelativeTransform>
    									<TransformGroup>
    										<ScaleTransform CenterY="0.5" CenterX="0.5"/>
    										<SkewTransform CenterY="0.5" CenterX="0.5"/>
    										<RotateTransform CenterY="0.5" CenterX="0.5"/>
    										<TranslateTransform/>
    									</TransformGroup>
    								</LinearGradientBrush.RelativeTransform>
    								<GradientStop Color="#FFEFECEC"/>
    								<GradientStop Offset="0.558"/>
    								<GradientStop Color="#FFEFECEC" Offset="1"/>
    								<GradientStop Offset="0.494"/>
    							</LinearGradientBrush>
    						</Rectangle.Fill>
    					</Rectangle>

    					<ListBox Margin="8,46,8,16" ItemsSource="{Binding FilteredPCs}" ItemContainerStyle="{DynamicResource ListBoxItemStyle1}" SelectedItem="{Binding SelectedPC}"/>
    					<TextBlock Height="19" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14.667" HorizontalAlignment="Center" Width="182.71" TextAlignment="Center" FontWeight="Bold"><Run Language="ru-ru" Text="Шаг 1 - выберите ПК"/></TextBlock>
    					<StackPanel Margin="11.145,19,11.145,0" Orientation="Horizontal" Height="23" VerticalAlignment="Top">
    						<TextBox TextWrapping="Wrap" FontSize="16" Width="151" Text="{Binding PcFilter, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
    						<Image Margin="-1,1,0,0" Width="40" Source="/VMDS.GUIClient;component/Views/Images/adjust_size.png"/>
        
    					</StackPanel>
        
    				</Grid>
    				<Grid Margin="0,191.297,0,0" Height="175.297" VerticalAlignment="Top" HorizontalAlignment="Left" Width="205">
        
    					<Rectangle Stroke="#FFF8F3F3" StrokeThickness="0.5" RadiusX="10" RadiusY="10" Margin="0">
    						<Rectangle.Fill>
    							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0.435">
    								<LinearGradientBrush.RelativeTransform>
    									<TransformGroup>
    										<ScaleTransform CenterY="0.5" CenterX="0.5"/>
    										<SkewTransform CenterY="0.5" CenterX="0.5"/>
    										<RotateTransform CenterY="0.5" CenterX="0.5"/>
    										<TranslateTransform/>
    									</TransformGroup>
    								</LinearGradientBrush.RelativeTransform>
    								<GradientStop Color="#FFEFECEC"/>
    								<GradientStop Offset="0.558"/>
    								<GradientStop Color="#FFEFECEC" Offset="1"/>
    								<GradientStop Offset="0.494"/>
    							</LinearGradientBrush>
    						</Rectangle.Fill>
    					</Rectangle>
        
    					<ListBox Margin="8,46,8,17.5" ItemsSource="{Binding FilteredVMs}" ItemContainerStyle="{DynamicResource ListBoxItemStyle1}" SelectedItem="{Binding SelectedVM, Mode=OneWayToSource}"  />
    					<TextBlock Height="20" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14.667" HorizontalAlignment="Center" Width="182.71" TextAlignment="Center" FontWeight="Bold"><Run Language="ru-ru" Text="Шаг 2 - выберите ВМ"/></TextBlock>
    					<StackPanel Margin="11.145,19,11.145,0" Orientation="Horizontal" Height="23" VerticalAlignment="Top">
    						<TextBox TextWrapping="Wrap" FontSize="16" Width="151" Text="{Binding VmFilter, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
    						<Image Margin="-1,1,0,0" Width="40" Source="/VMDS.GUIClient;component/Views/Images/adjust_size.png"/>
        
    					</StackPanel>
        
    				</Grid>
    				<Grid Margin="209,191.297,0,0" Height="174" VerticalAlignment="Top">
        
    					<Rectangle Stroke="#FFF8F3F3" StrokeThickness="0.5" RadiusX="10" RadiusY="10" Margin="0">
    						<Rectangle.Fill>
    							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0.435">
    								<LinearGradientBrush.RelativeTransform>
    									<TransformGroup>
    										<ScaleTransform CenterY="0.5" CenterX="0.5"/>
    										<SkewTransform CenterY="0.5" CenterX="0.5"/>
    										<RotateTransform CenterY="0.5" CenterX="0.5"/>
    										<TranslateTransform/>
    									</TransformGroup>
    								</LinearGradientBrush.RelativeTransform>
    								<GradientStop Color="#FFEFECEC"/>
    								<GradientStop Offset="0.558"/>
    								<GradientStop Color="#FFEFECEC" Offset="1"/>
    								<GradientStop Offset="0.494"/>
    							</LinearGradientBrush>
    						</Rectangle.Fill>
    					</Rectangle>
    					<TextBlock Height="20" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14.667" HorizontalAlignment="Center" Width="182.71" TextAlignment="Center" FontWeight="Bold"><Run Language="ru-ru" Text="Ход выполнения"/></TextBlock>
    					<ProgressBar Height="21" Margin="183.145,20,41.145,0" VerticalAlignment="Top" Background="#FF98DEC3" Value="{Binding CurrentProgress}"/>
    					<TextBlock Height="20" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14.667" HorizontalAlignment="Left" Width="161.71" TextAlignment="Center" FontWeight="Bold" Margin="8,21,0,0"><Run Language="ru-ru" Text="Общий прогресс"/></TextBlock>
    					<TextBlock Height="20" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14.667" HorizontalAlignment="Left" Width="161.71" TextAlignment="Center" FontWeight="Bold" Margin="8,46,0,0"><Run Language="ru-ru" Text="Текущий этап"/></TextBlock>
    					<TextBlock Height="20" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14.667" TextAlignment="Center" FontWeight="Bold" Margin="183.145,46,41.145,0" Background="#FF98DEC3" Text="{Binding CurrentOperation}"/>
    					<TextBlock Height="20" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14.667" HorizontalAlignment="Left" Width="161.71" TextAlignment="Center" FontWeight="Bold" Margin="8,70,0,0"><Run Language="ru-ru" Text="Скорость загрузки"/></TextBlock>
    					<TextBlock Height="20" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14.667" TextAlignment="Center" FontWeight="Bold" Margin="183.145,70,41.145,0" Background="#FF98DEC3" Text="{Binding CurrentSpeed}"/>
    					<TextBlock TextWrapping="Wrap" FontSize="14.667" HorizontalAlignment="Left" Width="161.71" TextAlignment="Center" FontWeight="Bold" Margin="8,94,0,0" Height="20" VerticalAlignment="Top"><Run Language="ru-ru" Text="Кем создано"/></TextBlock>
    					<TextBlock TextWrapping="Wrap" FontSize="14.667" TextAlignment="Center" FontWeight="Bold" Margin="183.145,94,41.145,0" Background="#FF98DEC3" Text="{Binding CurrentUser}" Height="20" VerticalAlignment="Top"/>
    					<TextBlock TextWrapping="Wrap" FontSize="14.667" HorizontalAlignment="Left" Width="161.71" TextAlignment="Center" FontWeight="Bold" Margin="8,118,0,0" Height="20" VerticalAlignment="Top"><Run Language="ru-ru" Text="Срок выполнения"/></TextBlock>
    					<TextBlock TextWrapping="Wrap" FontSize="14.667" TextAlignment="Center" FontWeight="Bold" Margin="183.145,118,41.145,0" Background="#FF98DEC3" Text="{Binding CurrentExpDate}" Height="20" VerticalAlignment="Top"/>
    					<Button x:Name="AddBut_Copy7" Margin="0,0,41.145,4.297" VerticalAlignment="Bottom" Height="29" ToolTip="Добавление новой виртуальной машины в системы" Grid.Column="0" Grid.Row="0" Style="{DynamicResource DisabledButton}" HorizontalContentAlignment="Left" Command="{Binding StopTask, Mode=OneWay}" d:LayoutOverrides="VerticalAlignment, GridBox" HorizontalAlignment="Right" Width="122.62">
    						<StackPanel Orientation="Horizontal">
    							<Image Margin="0,4,0,0" Source="/VMDS.GUIClient;component/Views/Images/cancel.png" OpacityMask="White" Width="27"/>
    							<TextBlock TextWrapping="Wrap" TextAlignment="Center" VerticalAlignment="Center" Margin="3,0,8,0" FontSize="14.667" FontWeight="Bold"><Run Language="ru-ru" Text="Остановить"/></TextBlock>
    						</StackPanel>
    					</Button>
        
    				</Grid>
    				<Grid Margin="209,12,0,0" Height="175.297" VerticalAlignment="Top">
        
    					<Rectangle Stroke="#FFF8F3F3" StrokeThickness="0.5" RadiusX="10" RadiusY="10" Margin="0">
    						<Rectangle.Fill>
    							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0.435">
    								<LinearGradientBrush.RelativeTransform>
    									<TransformGroup>
    										<ScaleTransform CenterY="0.5" CenterX="0.5"/>
    										<SkewTransform CenterY="0.5" CenterX="0.5"/>
    										<RotateTransform CenterY="0.5" CenterX="0.5"/>
    										<TranslateTransform/>
    									</TransformGroup>
    								</LinearGradientBrush.RelativeTransform>
    								<GradientStop Color="#FFEFECEC"/>
    								<GradientStop Offset="0.558"/>
    								<GradientStop Color="#FFEFECEC" Offset="1"/>
    								<GradientStop Offset="0.494"/>
    							</LinearGradientBrush>
    						</Rectangle.Fill>
    					</Rectangle>
    					<TextBlock Height="20" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14.667" HorizontalAlignment="Center" Width="182.71" TextAlignment="Center" FontWeight="Bold"><Run Language="ru-ru" Text="Выполненные задачи"/></TextBlock>
    					<ListBox Margin="8,24,8,16" ItemsSource="{Binding CompletedLog}"/>
        
    				</Grid>
    			</Grid>
    		</TabItem>
    		<TabItem Header="Создать задание" Margin="5,0,0,0" FontSize="14.667" Background="{x:Null}">
    			<Grid>
    				<Grid.DataContext>
    					<VMDS_GUIClient_ViewModels_Management_Tasks:TaskManagementViewModel/>
    				</Grid.DataContext>
    				<Grid HorizontalAlignment="Left" Margin="0,12,0,8" Width="186" d:LayoutOverrides="HorizontalAlignment">

    					<Rectangle Stroke="#FFF8F3F3" StrokeThickness="0.5" RadiusX="10" RadiusY="10" Margin="0">
    						<Rectangle.Fill>
    							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0.435">
    								<LinearGradientBrush.RelativeTransform>
    									<TransformGroup>
    										<ScaleTransform CenterY="0.5" CenterX="0.5"/>
    										<SkewTransform CenterY="0.5" CenterX="0.5"/>
    										<RotateTransform CenterY="0.5" CenterX="0.5"/>
    										<TranslateTransform/>
    									</TransformGroup>
    								</LinearGradientBrush.RelativeTransform>
    								<GradientStop Color="#FFEFECEC"/>
    								<GradientStop Offset="0.558"/>
    								<GradientStop Color="#FFEFECEC" Offset="1"/>
    								<GradientStop Offset="0.494"/>
    							</LinearGradientBrush>
    						</Rectangle.Fill>
    					</Rectangle>

    					<ListBox Margin="8,46,8,16" VMDS_GUIClient_Helper:MultiSelectorBehaviours.SynchronizedSelectedItems="{Binding SelectedPCs}"  SelectionMode="Multiple" ItemsSource="{Binding PCs}" ItemContainerStyle="{DynamicResource ListBoxItemStyle1}"/>
    					<TextBlock Height="19" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14.667" HorizontalAlignment="Center" Width="182.71" TextAlignment="Center" FontWeight="Bold"><Run Language="ru-ru" Text="Целевые ПК"/></TextBlock>
    					<TextBlock Height="19" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14.667" HorizontalAlignment="Left" Width="75.71" FontWeight="Bold" Margin="11.29,23,0,0" Text="Выбрано:" d:LayoutOverrides="HorizontalAlignment"/>
    					<TextBlock Height="19" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14.667" HorizontalAlignment="Left" Width="75.71" FontWeight="Bold" Margin="91,23,0,0" Text="{Binding SelectedPCs.Count, Mode=OneWay}"/>
        
    				</Grid>
    				<Button x:Name="AddBut_Copy2" Margin="0,0,0,8" Style="{DynamicResource DisabledButton}" VerticalAlignment="Bottom" Height="54" ToolTip="Добавление новой виртуальной машины в системы" Grid.Row="0" Grid.Column="0" d:LayoutOverrides="VerticalAlignment, GridBox" HorizontalAlignment="Right" Width="187" Command="{Binding Add, Mode=OneWay}">
    					<StackPanel Orientation="Horizontal">
    						<Image Margin="0" Source="/VMDS.GUIClient;component/Views/Images/ok.png" OpacityMask="White" Width="30"/>
    						<TextBlock Text="Добавить" TextWrapping="Wrap" TextAlignment="Center" VerticalAlignment="Center" Margin="3,0,8,0" FontSize="14.667" FontWeight="Bold"/>
    					</StackPanel>
    				</Button>
    				<Grid Margin="198,12,199,8">
        
    					<Rectangle Stroke="#FFF8F3F3" StrokeThickness="0.5" RadiusX="10" RadiusY="10" Margin="0">
    						<Rectangle.Fill>
    							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0.435">
    								<LinearGradientBrush.RelativeTransform>
    									<TransformGroup>
    										<ScaleTransform CenterY="0.5" CenterX="0.5"/>
    										<SkewTransform CenterY="0.5" CenterX="0.5"/>
    										<RotateTransform CenterY="0.5" CenterX="0.5"/>
    										<TranslateTransform/>
    									</TransformGroup>
    								</LinearGradientBrush.RelativeTransform>
    								<GradientStop Color="#FFEFECEC"/>
    								<GradientStop Offset="0.558"/>
    								<GradientStop Color="#FFEFECEC" Offset="1"/>
    								<GradientStop Offset="0.494"/>
    							</LinearGradientBrush>
    						</Rectangle.Fill>
    					</Rectangle>
        
    					<ListBox Margin="8,46,8,17.5" ItemsSource="{Binding VMs}" ItemContainerStyle="{DynamicResource ListBoxItemStyle1}" VMDS_GUIClient_Helper:MultiSelectorBehaviours.SynchronizedSelectedItems="{Binding SelectedVMs}" SelectionMode="Multiple" />
    					<TextBlock Height="20" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14.667" HorizontalAlignment="Center" Width="182.71" TextAlignment="Center" FontWeight="Bold"><Run Language="ru-ru" Text="Виртуальные машины"/></TextBlock>
    					<TextBlock Height="19" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14.667" HorizontalAlignment="Left" Width="75.71" FontWeight="Bold" Margin="11.29,23,0,0" Text="Выбрано:" d:LayoutOverrides="HorizontalAlignment"/>
    					<TextBlock Height="19" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14.667" HorizontalAlignment="Left" Width="75.71" FontWeight="Bold" Margin="91,23,0,0" Text="{Binding SelectedVMs.Count, Mode=OneWay}"/>
        
    				</Grid>
    				<Grid Margin="0,12,0,0" Width="187" HorizontalAlignment="Right" d:LayoutOverrides="HorizontalAlignment" Height="175.297" VerticalAlignment="Top">
        
    					<Rectangle Stroke="#FFF8F3F3" StrokeThickness="0.5" RadiusX="10" RadiusY="10" Margin="0">
    						<Rectangle.Fill>
    							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0.435">
    								<LinearGradientBrush.RelativeTransform>
    									<TransformGroup>
    										<ScaleTransform CenterY="0.5" CenterX="0.5"/>
    										<SkewTransform CenterY="0.5" CenterX="0.5"/>
    										<RotateTransform CenterY="0.5" CenterX="0.5"/>
    										<TranslateTransform/>
    									</TransformGroup>
    								</LinearGradientBrush.RelativeTransform>
    								<GradientStop Color="#FFEFECEC"/>
    								<GradientStop Offset="0.558"/>
    								<GradientStop Color="#FFEFECEC" Offset="1"/>
    								<GradientStop Offset="0.494"/>
    							</LinearGradientBrush>
    						</Rectangle.Fill>
    					</Rectangle>
    					<TextBlock Height="20" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="14.667" HorizontalAlignment="Center" Width="182.71" TextAlignment="Center" FontWeight="Bold"><Run Language="ru-ru" Text="Срок выполнения"/></TextBlock>
        
    				</Grid>
    				<Custom:DateTimePicker HorizontalAlignment="Right" Margin="0,53.296,18.705,0" VerticalAlignment="Top" DateTimeSelected="{Binding ExpDate, Mode=OneWayToSource}" Width="153.293" IsManipulationEnabled="True"/>
    			</Grid>
    		</TabItem>
    	</TabControl>
    </Grid>
</Page>
